<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<s:include value="menu.jsp"/>
	Active Members
	<table>
		<tr>
			<th>Username</th>
			<th>Status</th>
		</tr>
		<s:iterator value="activeUsersList">
		<tr>
			<td><s:property value="username"/></td>
			<td><s:property value="approvedStatus"/></td>
			<s:url action="ChangeUserStatus" var="url">
				<s:param name="userId" value="id"/>
			</s:url>
			<td><a href="<s:property value="#url"/>">Block</a></td>
		</tr>
		</s:iterator>
	</table>
	<br/>
	Pendent Members
	<table>
		<tr>
			<th>Username</th>
			<th>Status</th>
		</tr>
		<s:iterator value="unauthorizedUsersList">
		<tr>
			<td><s:property value="username"/></td>
			<td><s:property value="approvedStatus"/></td>
			<s:url action="ChangeUserStatus" var="url">
				<s:param name="userId" value="id"/>
			</s:url>
			<td><a href="<s:property value="#url"/>">Authorize</a></td>
		</tr>
		</s:iterator>
	</table>
	<br/>
	Banned Members
	<table>
		<tr>
			<th>Username</th>
			<th>Status</th>
		</tr>
		<s:iterator value="bannedUsersList">
		<tr>
			<td><s:property value="username"/></td>
			<td><s:property value="approvedStatus"/></td>
			<s:url action="ChangeUserStatus" var="url">
				<s:param name="userId" value="id"/>
		</s:url>
		<td><a href="<s:property value="#url"/>">Authorize</a></td>
		</tr>
		</s:iterator>
	</table>
	<br/>
</body>
</html>